package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjFactoryAccountBalance;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 厂商账户余额表 服务类
 * </p>
 *
 * @author WEN
 * @since 2024-02-27
 */
public interface ZjFactoryAccountBalanceService extends IService<ZjFactoryAccountBalance> {

    /**
     * 保存账号余额
     * @param factoryId 品牌商家ID
     */
    void saveAccountBalance(Long factoryId);

    /**
     * 增加冻结品牌商家费用
     * @param id 品牌商家ID
     * @param freezePrice 冻结费用
     */
    void updateFreezePriceById(Long id, BigDecimal freezePrice);

    /**
     * 根据厂商ID获取账户信息
     * @param ids
     * @return
     */
    List<ZjFactoryAccountBalance> getByIds(List<Long> ids);
}
